package thinking.java.initalization.and.clean.up;

/**
 * @author GaoFeng
 * @date 2020/1/2 14:46
 */
public class Cupboard {
    Bowl bowl3 = new Bowl(3);

    // 会比bowl3先初始化
    static Bowl bowl4 = new Bowl(4);

    Cupboard() {
        System.out.println("cupboard()");
        bowl4.f1(2);
    }

    void f3(int marker) {
        System.out.println("f3(" + marker + ")");
    }

    // 会比bowl3先初始化
    static  Bowl bowl5 = new Bowl(5);

}
